package cContext

import (
	"strings"

	"github.com/gin-gonic/gin"

	"gitee.com/csingo/cCommon"
)

func GetAuthorization(ctx *gin.Context) (token string) {
	bearer := ctx.GetHeader(cCommon.Header_Authorization)
	token = strings.TrimPrefix(bearer, "Bearer ")
	return
}
